package com.jerei.plugin.${packageFolder}.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.jerei.utils.spring.IEntity;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* ${entityDesc}
* @author sunfeihu
*
*/
public class ${entityName} implements IEntity {
<#list fields as field>
    <#if field.dataType=='datetime'>
    @JSONField(name = "${field.columnName}", format = "yyyy-MM-dd HH:mm:ss")
    private ${field.javaType} ${field.columnName};
    <#else>
    private ${field.javaType} ${field.columnName};
    </#if>
</#list>
<#list fields as field>
    public ${field.javaType} get${field.getSetName}() {return ${field.columnName};}
    public void set${field.getSetName}(${field.javaType} ${field.columnName}) {this.${field.columnName} = ${field.columnName};}
</#list>
}                                                                                                                                                                